
const dynamicRoutes = [
    {
        path: "/",
        component: () => import(/*webpackChunkName:"home"*/ "../pages/Home"),
        redirect: "/welcome",
        //所有的用户都能访问到这个充值中心和充值管理
        children: [
            {//一级菜单
                path: "vipmanager",
                component: () =>
                    import(/*webpackChunkName:'vipmanager'*/ "../pages/Home/VipManager"),
                // 路由元信息
                name: "vipmanager",//具名路由
                meta: {
                    //储存一些用户定义的属性
                    name: "vip管理",
                    icon: "iconfont icon-VIP4",//存菜单对应的图标的类名
                    fullPath: "/vipmanager",//当前路由的完整路径
                },
                children: [
                    {
                        path: "charge",
                        component: () =>
                            import(/*webpackChunkName:'charge'*/ "../pages/Home/VipManager/Charge"),
                        // 路由元信息
                        name: "charge",//具名路由
                        meta: {
                            //储存一些用户定义的属性
                            name: "vip充值",
                            icon: "iconfont icon-chongzhi",//存菜单对应的图标的类名
                            fullPath: "/vipmanager/charge",//当前路由的完整路径
                        }
                    },
                    {
                        path: "order",
                        component: () =>
                            import(/*webpackChunkName:'order'*/ "../pages/Home/VipManager/Order"),
                        // 路由元信息
                        name: "order",//具名路由
                        meta: {
                            //储存一些用户定义的属性
                            name: "订单管理",
                            icon: "iconfont icon-dd",//存菜单对应的图标的类名
                            fullPath: "/vipmanager/order",//当前路由的完整路径
                        }
                    }
                ]
            },
            {
                path: "pre_order",
                component: () => import(/*webpackChunkName:"preOrder"*/"../pages/Home/PreOrder"),
                name: "pre_order",
                meta: {
                    name: "预支付"
                }
            },
            {
                path: "payment",
                component: () => import(/*webpackChunkName:'payment' */"../pages/Home/payMent"),
                name: "payment",
                meta: {
                    name: "支付主页"
                },
                children: [
                    {
                        path: "pay",
                        component: () => import(/*webpackChunkName:"pay" */"../pages/Home/payMent/Pay"),
                        name: "pay",
                        meta: {
                            name: "支付页"
                        }
                    },
                    {
                        path: "paySuccess",
                        name: "paySuccess",
                        component: () => import(/*webpackChunkName:"paySuccess"*/"../pages/Home/payMent/PaySuccess"),
                        meta: {
                            name: "支付成功页面"
                        }
                    }
                ]
            }
        ]
    },

    {
        path: "*",
        component: () => import(/*webpackChunkName:"page404"*/ "../pages/Page404")
    }
]

export default dynamicRoutes;